/**
 * 库存盘点 api 封装
 *
 * @Author:    lyy
 * @Date:      2024-12-10 23:31:13
 * @Copyright  lyy
 */
import { postRequest, getRequest } from '/@/lib/axios';

export const inventoryCheckApi = {

  /**
   * 分页查询  @author  lyy
   */
  queryPage : (param) => {
    return postRequest('/inventoryCheck/queryPage', param);
  },

  /**
   * 增加  @author  lyy
   */
  add: (param) => {
      return postRequest('/inventoryCheck/add', param);
  },

  /**
   * 修改  @author  lyy
   */
  update: (param) => {
      return postRequest('/inventoryCheck/update', param);
  },


  /**
   * 删除  @author  lyy
   */
  delete: (id) => {
      return getRequest(`/inventoryCheck/delete/${id}`);
  },

  /**
   * 批量删除  @author  lyy
   */
  batchDelete: (idList) => {
      return postRequest('/inventoryCheck/batchDelete', idList);
  },

};
